import request from '@/utils/request'

// 新增收运记录
export function addRecord(data) {
  return request({
    url: '/system/record',
    method: 'post',
    data: data
  })
}


// 查询收运记录
export function listRecord(query) {
  return request({
    url: '/system/record/list',
    method: 'get',
	params: query
  })
}

// 删除收运记录
export function deleteRecord(id) {
  return request({
    url: '/system/record/' + id,
    method: 'delete',
  })
}

// 按日统计
export function staticsDay(query) {
  return request({
    url: '/system/record/staticsDay',
    method: 'get',
    params: query
  })
}

// 按日统计
export function recordDay(query) {
  return request({
    url: '/system/record/recordDay',
    method: 'get',
    params: query
  })
}

// 按日统计
export function recordForm(query) {
  return request({
    url: '/system/record/recordFormM',
    method: 'get',
    responseType: 'arraybuffer',
    params: query
  })
}
// 按日统计 合计
export function recordAmountTo(query) {
  return request({
    url: '/system/record/recordAmountTo',
    method: 'get',
    params: query
  })
}